<script setup lang="ts">
import { ref, onMounted } from "vue";
import Map from "@/components/Map.vue";

// 定义地图组件的引用
const mapRef = ref<InstanceType<typeof Map> | null>(null);

// 组件挂载后可以通过ref访问地图实例
onMounted(() => {});
</script>

<template>
  <div class="app-container">
    <Map ref="mapRef" />
  </div>
</template>

<style scoped>
.app-container {
  width: 100%;
  height: 100%;
}
</style>
